
package com.dtguai.app.api;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author guo
 * @date 2019年4月4日16:08:44
 */
@Controller
@RequestMapping()
public class Csrf {

    private final String csrf = "csrf---------------";

    private static Logger logger = Logger.getLogger(Csrf.class);

    @ResponseBody
    @RequestMapping(value = "csrf", produces = "application/text;charset=UTF-8")
    public String csrf() {
        logger.info(csrf);
        return csrf;
    }

}
